package com.financing.wap.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.financing.wap.dto.FpPaymentDTO;

public interface IPaymentService {
	/**
	 * 
	 * @Title: insertPayment
	 * @Description: 支付流水
	 * @param FpPaymentDTO
	 * @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int insertPayment(FpPaymentDTO paymentDTO) throws SQLException;

	/**
	 * 
	 * @Title: loadByOrderId
	 * @Description: 根据参数查询订单id
	 * @param FpPaymentDTO
	 * @throws SQLException   
	 * @return FpPaymentDTO   
	 * @throws
	 */
	public FpPaymentDTO loadByOrderId(Map<String,String> map) throws SQLException;

	/**
	 * 
	 * @Title: updatePayment
	 * @Description: 修改流水状态
	 * @param FpPaymentDTO
	 * @throws SQLException   
	 * @throws
	 */
	public void updatePayment(FpPaymentDTO paymentUp)throws SQLException;
	
	/**
	 * 
	 * @Title: queryPaymentList
	 * @Description: 根据参数查询订单id
	 * @param FpPaymentDTO
	 * @throws SQLException   
	 * @return FpPaymentDTO   
	 * @throws
	 */
	public List<FpPaymentDTO> queryPaymentList(Map<String,String> map) throws SQLException;
	
	/**
	 * 
	 * @Title: queryPaymentListCount
	 * @Description: 根据参数查询订单id
	 * @param FpPaymentDTO
	 * @throws SQLException   
	 * @return int   
	 * @throws
	 */
	public int queryPaymentListCount(Map<String,String> map) throws SQLException;
}
